package com.netease.service;

import java.util.List;

import com.netease.dao.User;
import com.netease.dao.UserDao;

public class UserServiceImpl implements UserService {
    private UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public int countAll() {
        return this.userDao.countAll();
    }

    @Override
    public String getNameById(int id) {
        // TODO Auto-generated method stub
        return this.userDao.getNameById(id);
    }

    @Override
    public List<User> getAll() {
        // TODO Auto-generated method stub
        return this.userDao.getAll();
    }

    @Override
    public void add(User user) {
        this.userDao.add(user);
    }

}
